export const statusList: {
	[key: string | number]: any
} = {
	0: [
		{
			title: '全部',
			value: [1, 2, 3, 4],
			field: 'total',
			count: 0
		},
		{
			title: '待签约',
			value: [1],
			field: 'signing',
			count: 0
		},
		{
			title: '合约中',
			value: [2],
			field: 'normal',
			count: 0
		},
		{
			title: '已退租',
			value: [3],
			field: 'terminate',
			count: 0
		},
		{
			title: '无效',
			value: [4],
			field: 'invalid',
			count: 0
		}
	],
	1: [
		{
			title: '全部',
			value: '',
			field: 'total',
			count: 0
		},
		{
			title: '待处理',
			value: 11,
			field: 'unprocessed',
			count: 0
		},
		{
			title: '待认证',
			value: 18,
			field: 'notRealNameAuth',
			count: 0
		},
		{
			title: '待签字',
			value: 12,
			field: 'notSigned',
			count: 0
		}
	],
	2: [
		{
			title: '全部',
			value: '',
			field: 'total',
			count: 0
		},
		{
			title: '待付款',
			count: 0,
			field: 'unpaid',
			value: 21
		},

		{
			title: '即将搬入',
			count: 0,
			field: 'coming',
			value: 23
		},
		{
			title: '租约中',
			count: 0,
			field: 'valid',
			value: 24
		},
		{
			title: '即将到期',
			count: 0,
			field: 'expiring',
			value: 25
		},
		{
			title: '已到期',
			count: 0,
			field: 'expired',
			value: 26
		},
		{
			title: '已续租',
			count: 0,
			field: 'renew',
			value: 27
		},
		{
			title: '欠租提醒',
			count: 0,
			field: 'backRentRemindNum',
			value: null,
			backRentRemind: 1
		}
	],
	3: [
		{
			title: '全部',
			value: '',
			field: 'total',
			count: 0
		},
		{
			title: '到期退',
			count: 0,
			field: 'normalTerminated',
			value: 31
		},
		{
			title: '违约退',
			count: 0,
			field: 'abnormalTerminated',
			value: 32
		},
		{
			title: '协议退',
			count: 0,
			field: 'agreementTerminated',
			value: 33
		},
		{
			title: '未结算',
			count: 0,
			field: 'unsettled',
			value: 34
		}
	],
	4: [
		{
			title: '全部',
			value: '',
			field: 'total',
			count: 0
		},
		{
			title: '已作废',
			count: 0,
			field: 'obsoleted',
			value: 41
		},
		{
			title: '已拒绝',
			count: 0,
			field: 'canceled',
			value: 42
		}
	]
	// 未确定要不要
	// {
	// 	title: '待审批',
	// 	value: 17,
	// 	field: 'approvalPending',
	// 	count: 0
	// },
	// {
	// 	title: '待租客确认',
	// 	count: 0,
	// 	field: 'unConfirmed',
	// 	value: 22
	// },
}

export const charterStatusList: {
	[key: string | number]: any
} = {
	// 0: [
	// 	{
	// 		title: '全部',
	// 		value: [1, 2, 3, 4],
	// 		field: 'total',
	// 		count: 0
	// 	},
	// 	{
	// 		title: '待签约',
	// 		value: [1],
	// 		field: 'signing',
	// 		count: 0
	// 	},
	// 	{
	// 		title: '合约中',
	// 		value: [2],
	// 		field: 'normal',
	// 		count: 0
	// 	},
	// 	{
	// 		title: '已退租',
	// 		value: [3],
	// 		field: 'terminate',
	// 		count: 0
	// 	},
	// 	{
	// 		title: '无效',
	// 		value: [4],
	// 		field: 'invalid',
	// 		count: 0
	// 	}
	// ],
	1: [
		{
			title: '全部',
			value: '',
			field: 'total',
			count: 0
		},
		{
			title: '待处理',
			value: 11,
			field: 'unprocessed',
			count: 0
		},
		{
			title: '待认证',
			value: 18,
			field: 'notRealNameAuth',
			count: 0
		},
		{
			title: '待签字',
			value: 12,
			field: 'notSigned',
			count: 0
		}
	],
	2: [
		{
			title: '全部',
			value: '',
			field: 'total',
			count: 0
		},
		{
			title: '待付款',
			count: 0,
			field: 'unpaid',
			value: 21
		},

		{
			title: '即将搬入',
			count: 0,
			field: 'coming',
			value: 23
		},
		{
			title: '租约中',
			count: 0,
			field: 'valid',
			value: 24
		},
		{
			title: '即将到期',
			count: 0,
			field: 'expiring',
			value: 25
		},
		{
			title: '已到期',
			count: 0,
			field: 'expired',
			value: 26
		},
		{
			title: '已续租',
			count: 0,
			field: 'renew',
			value: 27
		}
		// {
		// 	title: '欠租提醒',
		// 	count: 0,
		// 	field: 'backRentRemindNum',
		// 	value: null,
		// 	backRentRemind: 1
		// }
	],
	3: [
		{
			title: '全部',
			value: '',
			field: 'total',
			count: 0
		},
		{
			title: '到期退',
			count: 0,
			field: 'normalTerminated',
			value: 31
		},
		{
			title: '违约退',
			count: 0,
			field: 'abnormalTerminated',
			value: 32
		},
		{
			title: '协议退',
			count: 0,
			field: 'agreementTerminated',
			value: 33
		},
		{
			title: '未结算',
			count: 0,
			field: 'unsettledCount',
			value: 34
		}
	],
	4: [
		{
			title: '全部',
			value: '',
			field: 'total',
			count: 0
		},
		{
			title: '已作废',
			count: 0,
			field: 'obsoleted',
			value: 41
		},
		{
			title: '已拒绝',
			count: 0,
			field: 'canceled',
			value: 42
		}
	]
	// 未确定要不要
	// {
	// 	title: '待审批',
	// 	value: 17,
	// 	field: 'approvalPending',
	// 	count: 0
	// },
	// {
	// 	title: '待租客确认',
	// 	count: 0,
	// 	field: 'unConfirmed',
	// 	value: 22
	// },
}
export const ownerOperationType = [
	{
		name: '退租',
		id: 1,
		field: ['mk_contract_owner_yztz']
	},
	{
		name: '续租',
		id: 2,
		field: ['mk_contract_owner_yzxz']
	},
	{
		name: '作废',
		id: 3,
		field: ['mk_contract_owner_yzzf']
	},
	{
		name: '重置',
		id: 4,
		field: ['mk_contract_owner_yzcz']
	}
]

export const ownerStatusList: {
	[key: string | number]: any
} = {
	0: [
		{
			title: '全部',
			value: [2, 6, 3, 4, 5],
			field: 'total',
			count: 0
		},
		{
			title: '合约中',
			count: 0,
			field: 'normal',
			value: [2, 6]
		},
		{
			title: '已退租',
			count: 0,
			field: 'terminated',
			value: [3, 4]
		},
		{
			title: '无效',
			count: 0,
			field: 'invalid',
			value: [5]
		}
	],
	1: [
		{
			title: '全部',
			value: '',
			field: 'total',
			count: 0
		},

		{
			title: '即将生效',
			count: 0,
			field: 'coming',
			value: 1
		},
		{
			title: '租约中',
			count: 0,
			field: 'valid',
			value: 2
		},
		{
			title: '即将到期',
			count: 0,
			field: 'expiring',
			value: 3
		},
		{
			title: '已到期',
			count: 0,
			field: 'expired',
			value: 4
		},
		{
			title: '已续租',
			count: 0,
			field: 'renew',
			value: 8
		}
	],
	2: [
		{
			title: '全部',
			value: '',
			field: 'total',
			count: 0
		},
		{
			title: '到期退',
			count: 0,
			field: 'breakNormal',
			value: 5
		},
		{
			title: '违约退',
			count: 0,
			field: 'breakAbnormal',
			value: 9
		}
		// {
		// 	title: '协议退',
		// 	count: 0,
		// 	field: 'abnormalTerminated',
		// 	value: 33
		// }
	],
	3: [
		{
			title: '全部',
			value: '',
			field: 'total',
			count: 0
		},
		{
			title: '已作废',
			count: 0,
			field: 'invalid',
			value: 6
		}
	]
}
export const ownerStatus: {
	[key: string | number]: any
} = {
	1: {
		// ,'分阶信息'
		name: '即将生效',
		color: 'success',
		detailTab: ['合约信息', '业主信息', '账单信息', '分阶信息', '物业交割单'],
		operation: [
			{
				name: '退租',
				field: 'showRetreatRent',
				sort: 2,
				type: 'default',
				action: ['mk_contract_owner_yztz']
			},
			{
				name: '续租',
				field: 'showSignContract',
				sort: 5,
				type: 'primary',
				action: ['mk_contract_owner_yzxz']
			},
			{
				name: '作废',
				field: 'showToVoid',
				sort: 0,
				type: 'danger',
				action: ['mk_contract_owner_yzzf']
			}
			// {
			// 	name: '重置',
			// 	field: 'showReset',
			// 	sort: 1,
			// 	type: 'default',
			// 	action: ['mk_contract_owner_yzcz']
			// }
		]
	},
	2: {
		name: '租约中',
		color: 'success',
		detailTab: ['合约信息', '业主信息', '账单信息', '分阶信息', '物业交割单'],
		operation: [
			{
				name: '退租',
				field: 'showRetreatRent',
				sort: 2,
				type: 'default',
				action: ['mk_contract_owner_yztz']
			},
			{
				name: '续租',
				field: 'showSignContract',
				sort: 5,
				type: 'primary',
				action: ['mk_contract_owner_yzxz']
			},
			{
				name: '作废',
				field: 'showToVoid',
				sort: 0,
				type: 'danger',
				action: ['mk_contract_owner_yzzf']
			}
			// {
			// 	name: '重置',
			// 	field: 'showReset',
			// 	sort: 1,
			// 	type: 'default',
			// 	action: ['mk_contract_owner_yzcz']
			// }
		]
	},
	3: {
		name: '即将到期',
		color: 'warning',
		detailTab: ['合约信息', '业主信息', '账单信息', '分阶信息', '物业交割单'],
		operation: [
			{
				name: '退租',
				field: 'showRetreatRent',
				sort: 2,
				type: 'default',
				action: ['mk_contract_owner_yztz']
			},
			{
				name: '续租',
				field: 'showSignContract',
				sort: 5,
				type: 'primary',
				action: ['mk_contract_owner_yzxz']
			},
			{
				name: '作废',
				field: 'showToVoid',
				sort: 0,
				type: 'danger',
				action: ['mk_contract_owner_yzzf']
			}
			// {
			// 	name: '重置',
			// 	field: 'showReset',
			// 	sort: 1,
			// 	type: 'default',
			// 	action: ['mk_contract_owner_yzcz']
			// }
		]
	},
	4: {
		name: '已到期',
		color: 'processing',
		detailTab: ['合约信息', '业主信息', '账单信息', '分阶信息', '物业交割单'],
		operation: [
			{
				name: '退租',
				field: 'showRetreatRent',
				sort: 2,
				type: 'default',
				action: ['mk_contract_owner_yztz']
			},
			{
				name: '续租',
				field: 'showSignContract',
				sort: 5,
				type: 'primary',
				action: ['mk_contract_owner_yzxz']
			},
			{
				name: '作废',
				field: 'showToVoid',
				sort: 0,
				type: 'danger',
				action: ['mk_contract_owner_yzzf']
			}
		]
	},
	5: {
		name: '到期退',
		color: 'orange',
		detailTab: ['合约信息', '业主信息', '账单信息', '分阶信息', '退房交割单'],
		operation: []
	},
	6: {
		name: '已作废',
		color: 'processing',
		detailTab: ['合约信息', '业主信息', '账单信息', '分阶信息', '物业交割单'],
		operation: []
	},
	7: {
		name: '待生效',
		color: 'warning',
		detailTab: ['合约信息', '业主信息', '账单信息', '分阶信息', '物业交割单'],
		operation: [
			{
				name: '退租',
				field: 'showRetreatRent',
				sort: 2,
				type: 'default',
				action: ['mk_contract_owner_yztz']
			},
			{
				name: '续租',
				field: 'showSignContract',
				sort: 5,
				type: 'primary',
				action: ['mk_contract_owner_yzxz']
			},
			{
				name: '作废',
				field: 'showToVoid',
				sort: 0,
				type: 'danger',
				action: ['mk_contract_owner_yzzf']
			}
			// {
			// 	name: '重置',
			// 	field: 'showReset',
			// 	sort: 1,
			// 	type: 'default',
			// 	action: ['mk_contract_owner_yzcz']
			// }
		],
		contract: [
			{name: '退租', id: 1},
			{name: '换房', id: 2},
			{name: '作废', id: 3}
		]
	},
	8: {
		name: '已续租',
		color: 'success',
		detailTab: ['合约信息', '业主信息', '账单信息', '分阶信息', '物业交割单'],
		operation: []
	},
	9: {
		name: '违约退',
		color: 'error',
		detailTab: ['合约信息', '业主信息', '账单信息', '分阶信息', '退房交割单'],
		operation: []
	},
	10: {
		name: '协议退',
		color: 'error',
		detailTab: ['合约信息', '业主信息', '账单信息', '分阶信息', '退房交割单'],
		operation: []
	}
}
export const labelStatus: {
	[key: string | number]: any
} = {
	0: {
		name: '租约中',
		color: 'success',
		detailTab: ['合约信息', '入住人信息', '账单信息', '物业交割单', '授权信息', '能耗费充值', '开具发票'],
		operation: []
	},
	11: {
		name: '待处理',
		color: 'warning',
		detailTab: ['合约信息', '入住人信息'],
		operation: [
			{
				name: '处理',
				field: 'showSignContract',
				sort: 1,
				type: 'primary',
				action: ['mk_contract_tenant_cl']
			},
			{
				name: '拒绝',
				field: 'showRefuse',
				sort: 0,
				type: 'danger',
				action: ['mk_contract_tenant_jj']
			}
		]
	},
	18: {
		name: '待认证',
		color: 'processing',
		detailTab: ['合约信息', '入住人信息', '账单信息', '物业交割单'],
		// detailTab: ['合约信息', '入住人信息', '账单信息', '物业交割单', '审批信息'],
		operation: [
			{
				name: '作废',
				field: 'showToVoid',
				sort: 0,
				type: 'danger',
				action: ['mk_contract_tenant_zf']
			},
			{
				name: '邀请认证',
				field: 'showInviteCertification',
				sort: 1,
				type: 'primary',
				action: ['mk_contract_tenant_yqrz']
			}
		]
	},
	12: {
		name: '待签字',
		color: 'processing',
		detailTab: ['合约信息', '入住人信息', '账单信息', '物业交割单'],
		// detailTab: ['合约信息', '入住人信息', '账单信息', '物业交割单', '审批信息'],
		operation: [
			// {
			// 	name: '完善合同附件',
			// 	field: 'showContractAttachments',
			// 	sort: 2,
			// 	type: 'primary'
			// 	// action: ['mk_contract_tenant_yqqz']
			// },
			{
				name: '作废',
				field: 'showToVoid',
				sort: 0,
				type: 'danger',
				action: ['mk_contract_tenant_zf']
			}
			// {
			// 	name: '邀请签字',
			// 	field: 'showInvitationSignature',
			// 	sort: 1,
			// 	type: 'primary',
			// 	action: ['mk_contract_tenant_yqqz']
			// }
		]
	},
	21: {
		name: '待付款',
		color: 'orange',
		detailTab: ['合约信息', '入住人信息', '账单信息', '物业交割单', '能耗费充值', '开具发票'],
		// detailTab: ['合约信息', '入住人信息', '账单信息', '物业交割单', '审批信息'],
		operation: [
			{
				name: '作废',
				field: 'showToVoid',
				sort: 0,
				type: 'danger',
				action: ['mk_contract_tenant_zf']
			},
			{
				name: '提醒付款',
				field: 'showRemindPay',
				sort: 1,
				type: 'primary',
				action: ['mk_contract_tenant_txfk']
			}
		]
	},
	23: {
		name: '即将搬入',
		color: 'processing',
		detailTab: ['合约信息', '入住人信息', '账单信息', '物业交割单', '授权信息', '能耗费充值', '开具发票'],
		// detailTab: ['合约信息', '入住人信息', '账单信息', '物业交割单', '审批信息'],
		operation: [
			{
				name: '转租',
				field: 'showTurnRent',
				sort: 3,
				type: 'default',
				action: ['mk_contract_tenant_zz']
			},
			{
				name: '换房',
				field: 'showChangeHouse',
				sort: 4,
				type: 'default',
				action: ['mk_contract_tenant_hf']
			},
			{
				name: '续租',
				field: 'showSignContract',
				sort: 5,
				type: 'primary',
				action: ['mk_contract_tenant_xz']
			},
			{
				name: '作废',
				field: 'showToVoid',
				sort: 0,
				type: 'danger',
				action: ['mk_contract_tenant_zf']
			},
			{
				name: '重置',
				field: 'showReset',
				sort: 1,
				type: 'default',
				action: ['mk_contract_tenant_cz']
			}
		],
		contract: [
			{name: '退租', id: 1},
			{name: '换房', id: 2},
			{name: '作废', id: 3}
		]
	},
	24: {
		name: '租约中',
		color: 'success',
		detailTab: ['合约信息', '入住人信息', '账单信息', '物业交割单', '授权信息', '能耗费充值', '开具发票'],
		// detailTab: ['合约信息', '入住人信息', '账单信息', '物业交割单', '审批信息'],
		operation: [
			{
				name: '退租',
				field: 'showRetreatRent',
				sort: 2,
				type: 'default',
				action: ['mk_contract_tenant_tz']
			},
			{
				name: '转租',
				field: 'showTurnRent',
				sort: 3,
				type: 'default',
				action: ['mk_contract_tenant_zz']
			},
			{
				name: '换房',
				field: 'showChangeHouse',
				sort: 4,
				type: 'default',
				action: ['mk_contract_tenant_hf']
			},
			{
				name: '续租',
				field: 'showSignContract',
				sort: 5,
				type: 'primary',
				action: ['mk_contract_tenant_xz']
			},
			{
				name: '作废',
				field: 'showToVoid',
				sort: 0,
				type: 'danger',
				action: ['mk_contract_tenant_zf']
			},
			{
				name: '重置',
				field: 'showReset',
				sort: 1,
				type: 'default',
				action: ['mk_contract_tenant_cz']
			}
		],
		contract: [
			{name: '退租', id: 1},
			{name: '换房', id: 2},
			{name: '作废', id: 3}
		]
	},
	25: {
		name: '即将到期',
		color: 'warning',
		detailTab: ['合约信息', '入住人信息', '账单信息', '物业交割单', '授权信息', '能耗费充值', '开具发票'],
		// detailTab: ['合约信息', '入住人信息', '账单信息', '物业交割单', '审批信息'],
		operation: [
			{
				name: '退租',
				field: 'showRetreatRent',
				sort: 2,
				type: 'default',
				action: ['mk_contract_tenant_tz']
			},
			{
				name: '转租',
				field: 'showTurnRent',
				sort: 3,
				type: 'default',
				action: ['mk_contract_tenant_zz']
			},
			{
				name: '换房',
				field: 'showChangeHouse',
				sort: 4,
				type: 'default',
				action: ['mk_contract_tenant_hf']
			},
			{
				name: '续租',
				field: 'showSignContract',
				sort: 5,
				type: 'primary',
				action: ['mk_contract_tenant_xz']
			},
			{
				name: '作废',
				field: 'showToVoid',
				sort: 0,
				type: 'danger',
				action: ['mk_contract_tenant_zf']
			},
			{
				name: '重置',
				field: 'showReset',
				sort: 1,
				type: 'default',
				action: ['mk_contract_tenant_cz']
			}
		],
		contract: [
			{name: '退租', id: 1},
			{name: '换房', id: 2},
			{name: '作废', id: 3}
		]
	},
	26: {
		name: '已到期',
		color: 'error',
		detailTab: ['合约信息', '入住人信息', '账单信息', '物业交割单', '能耗费充值', '开具发票'],
		// detailTab: ['合约信息', '入住人信息', '账单信息', '物业交割单', '审批信息'],
		operation: [
			{
				name: '退租',
				field: 'showRetreatRent',
				sort: 2,
				type: 'default',
				action: ['mk_contract_tenant_tz']
			},
			{
				name: '续租',
				field: 'showSignContract',
				sort: 5,
				type: 'primary',
				action: ['mk_contract_tenant_xz']
			},
			{
				name: '作废',
				field: 'showToVoid',
				sort: 0,
				type: 'danger',
				action: ['mk_contract_tenant_zf']
			},
			{
				name: '重置',
				field: 'showReset',
				sort: 1,
				type: 'default',
				action: ['mk_contract_tenant_cz']
			}
		],
		contract: [
			{name: '退租', id: 1},
			{name: '作废', id: 3}
		]
	},
	27: {
		name: '已续租',
		color: 'cyan',
		detailTab: ['合约信息', '入住人信息', '账单信息', '物业交割单', '授权信息', '能耗费充值', '开具发票'],
		// detailTab: ['合约信息', '入住人信息', '账单信息', '物业交割单', '审批信息'],
		operation: []
	},
	31: {
		name: '到期退',
		color: 'warning',
		detailTab: ['合约信息', '入住人信息', '账单信息', '退房交割单', '能耗费充值', '开具发票'],
		operation: [
			{
				name: '打印退租报告',
				field: 'printReport',
				sort: 1,
				type: 'default',
				action: ['mk_contract_tenant_tz']
			}
		]
	},
	32: {
		name: '违约退',
		color: 'error',
		detailTab: ['合约信息', '入住人信息', '账单信息', '退房交割单', '能耗费充值', '开具发票'],
		operation: [
			{
				name: '打印退租报告',
				field: 'printReport',
				sort: 1,
				type: 'default',
				action: ['mk_contract_tenant_tz']
			}
		],
		contract: []
	},
	33: {
		name: '协议退',
		color: 'error',
		detailTab: ['合约信息', '入住人信息', '账单信息', '退房交割单', '能耗费充值', '开具发票'],
		operation: [
			{
				name: '打印退租报告',
				field: 'printReport',
				sort: 1,
				type: 'default',
				action: ['mk_contract_tenant_tz']
			}
		],
		contract: []
	},
	34: {
		name: '未结算',
		color: 'error',
		detailTab: ['合约信息', '入住人信息', '账单信息', '退房交割单', '能耗费充值', '开具发票'],
		operation: [
			{
				name: '结算',
				field: 'settlement',
				sort: 1,
				type: 'default',
				action: ['mk_contract_tenant_tz']
			}
		],
		contract: []
	},
	42: {
		name: '已拒绝',
		color: 'default',
		detailTab: ['合约信息', '入住人信息'],
		operation: [],
		contract: []
	},
	41: {
		name: '已作废',
		color: 'error',
		detailTab: ['合约信息', '入住人信息', '账单信息', '物业交割单', '开具发票'],
		// detailTab: ['合约信息', '入住人信息', '账单信息', '物业交割单', '审批信息'],
		operation: [],
		contract: []
	}
	// 旧状态应该不要了
	// 13: {
	// 	name: '待申请金融',
	// 	color: 'warning'
	// },
	// 14: {
	// 	name: '金融审核中',
	// 	color: 'success'
	// },
	// 15: {
	// 	name: '审核失败',
	// 	color: 'error'
	// }
	// 未确定要不要的状态
	// 17: {
	// 	name: '审核中',
	// 	color: 'warning'
	// },

	// 22: {
	// 	name: '待租客确认',
	// 	color: 'warning'
	// },
}
// 租客合同签约需要混合的字段
export const minxinField: {
	[key: string | number]: any
} = {
	// 带入数据
	sign: [
		'emergencyName',
		'emergencyPhone',
		'emergencyType',
		'houseAddress',
		'houseId',
		'identityCard',
		'certificationType',
		'nationality',
		'name',
		'phone',
		'togetherList',
		'houseType',
		'maintainerId',
		'signType',
		'beginTime',
		'endTime',
		'signTime',
		'deposit',
		'price',
		'depositMonth',
		'periodMonth',
		'housePid',
		'gender',
		'signApplyId',
		'contractPid',
		'contractNo'
	],
	// 续签
	renew: [
		'contractMedium',
		'zeroRentPeriod',
		'houseAddress',
		'houseId',
		'houseType',
		'price',
		'deposit',
		'signEmpName',
		'signMaintainName',
		'signEmpId',
		'maintainerId',
		'interest',
		'renterInfo',
		'signType',
		'signDeptId',
		'beginTime',
		'endTime'
	]
}
